package com.ruoyi.labdanger.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;
import java.util.List;

/**
 * 申请领用明细对象 lab_apply_occupation_details
 * 
 * @author ruoyi
 * @date 2022-03-20
 */
public class LabApplyOccupationDetails extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 领用明细ID */
    private Long occupationDetailsId;

    /** 申请领用ID */
    @Excel(name = "申请领用ID")
    private Long instanceId;
    /**
     * 学院采购申请ID.
     * */
    private Long purchaseId;
    
    public Long getPurchaseId() {
		return purchaseId;
	}

	public void setPurchaseId(Long purchaseId) {
		this.purchaseId = purchaseId;
	}

	/** 申请采购明细ID */
    @Excel(name = "申请采购明细ID")
    private Long purchaseDetailId;

    /** CAS编号 */
    @Excel(name = "CAS编号")
    private String casNo;

    /** 危化品名称 */
    @Excel(name = "危化品名称")
    private String materialName;

    /** 库存数量 */
    @Excel(name = "库存数量")
    private String inventoryQuantity;

    /** 类别 */
    @Excel(name = "类别")
    private Long hazardousOpt;

    /** 型号规格 */
    @Excel(name = "型号规格")
    private String model;

    /** 领用擞 */
    @Excel(name = "领用擞")
    private Integer occupationQuantity;

    /** 单位 */
    @Excel(name = "单位")
    private Long unitOpt;

    // 存放学院
    private Integer collegeId;
    // 存放实验室
    private Integer labId;

    /** 领取人1编号 */
    private String receiver1No;
    /** 领取人1名称 */
    private String receiver1Name;
    /** 领取人2编号 */
    private String receiver2No;
    /** 领取人1名称 */
    private String receiver2Name;
    /** 领取状态 */
    private Integer status;
    /** 领取时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date receiverTime;

    // 出库详情
    private List<LabApplyOccupationDeliver> deliverList;

    public void setOccupationDetailsId(Long occupationDetailsId) 
    {
        this.occupationDetailsId = occupationDetailsId;
    }

    public Long getOccupationDetailsId() 
    {
        return occupationDetailsId;
    }
    public void setInstanceId(Long instanceId) 
    {
        this.instanceId = instanceId;
    }

    public Long getInstanceId() 
    {
        return instanceId;
    }
    public void setPurchaseDetailId(Long purchaseDetailId) 
    {
        this.purchaseDetailId = purchaseDetailId;
    }

    public Long getPurchaseDetailId() 
    {
        return purchaseDetailId;
    }
    public void setCasNo(String casNo)
    {
        this.casNo = casNo;
    }

    public String getCasNo()
    {
        return casNo;
    }
    public void setMaterialName(String materialName) 
    {
        this.materialName = materialName;
    }

    public String getMaterialName() 
    {
        return materialName;
    }
    public void setInventoryQuantity(String inventoryQuantity) 
    {
        this.inventoryQuantity = inventoryQuantity;
    }

    public String getInventoryQuantity() 
    {
        return inventoryQuantity;
    }
    public void setHazardousOpt(Long hazardousOpt) 
    {
        this.hazardousOpt = hazardousOpt;
    }

    public Long getHazardousOpt() 
    {
        return hazardousOpt;
    }
    public void setModel(String model) 
    {
        this.model = model;
    }

    public String getModel() 
    {
        return model;
    }
    public void setOccupationQuantity(Integer occupationQuantity)
    {
        this.occupationQuantity = occupationQuantity;
    }

    public Integer getOccupationQuantity()
    {
        return occupationQuantity;
    }
    public void setUnitOpt(Long unitOpt) 
    {
        this.unitOpt = unitOpt;
    }

    public Long getUnitOpt() 
    {
        return unitOpt;
    }

    public Integer getCollegeId() {
        return collegeId;
    }

    public void setCollegeId(Integer collegeId) {
        this.collegeId = collegeId;
    }

    public Integer getLabId() {
        return labId;
    }

    public void setLabId(Integer labId) {
        this.labId = labId;
    }

    public String getReceiver1No() {
        return receiver1No;
    }

    public void setReceiver1No(String receiver1No) {
        this.receiver1No = receiver1No;
    }

    public String getReceiver1Name() {
        return receiver1Name;
    }

    public void setReceiver1Name(String receiver1Name) {
        this.receiver1Name = receiver1Name;
    }

    public String getReceiver2No() {
        return receiver2No;
    }

    public void setReceiver2No(String receiver2No) {
        this.receiver2No = receiver2No;
    }

    public String getReceiver2Name() {
        return receiver2Name;
    }

    public void setReceiver2Name(String receiver2Name) {
        this.receiver2Name = receiver2Name;
    }

    public List<LabApplyOccupationDeliver> getDeliverList() {
        return deliverList;
    }

    public void setDeliverList(List<LabApplyOccupationDeliver> deliverList) {
        this.deliverList = deliverList;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getReceiverTime() {
        return receiverTime;
    }

    public void setReceiverTime(Date receiverTime) {
        this.receiverTime = receiverTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("occupationDetailsId", getOccupationDetailsId())
            .append("instanceId", getInstanceId())
            .append("purchaseDetailId", getPurchaseDetailId())
            .append("casNo", getCasNo())
            .append("materialName", getMaterialName())
            .append("inventoryQuantity", getInventoryQuantity())
            .append("hazardousOpt", getHazardousOpt())
            .append("model", getModel())
            .append("occupationQuantity", getOccupationQuantity())
            .append("unitOpt", getUnitOpt())
            .toString();
    }
}
